<?php

    $average_rating = (!empty($project['Project']['project_rating_count'])) ? ($project['Project']['total_ratings']/$project['Project']['project_rating_count']) : 0;
    echo $this->element('_star-rating', array('project_id' => $project['Project']['id'], 'rating'=>$rate, 'total_rating' => $project['Project']['total_ratings'],'rating_count' => $project['Project']['project_rating_count'], 'current_rating' => $average_rating, 'canRate' => true)).'##'.$this->Html->cInt($project['Project']['total_ratings'],false).'##'.$this->Html->cFloat($project['Project']['total_ratings'] / $project['Project']['project_rating_count'],false).'##'.$this->Html->cInt($project['Project']['project_rating_count'],false);
?>